package Reflection;

import java.lang.reflect.Array;
import java.lang.reflect.Method;

/**
 * @author leon(liangzou0318@gmail.com)
 * @date 2012-5-7
 * @filaname Test1.java
 */
public class Test1 {

	public static void main(String[] args) {
		String a="abc";
		Class obj=a.getClass();
		System.out.println(obj.getClass());

		System.out.println(obj.getSuperclass());
	//	System.out.print(obj.f);
        try {
			Class classType=Class.forName("java.lang.String");
			Object array= Array.newInstance(classType,10);
	       	Array.set(array, 5, "34");
		System.out.println(Array.get(array, 5));
	
		} catch (ClassNotFoundException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		

	}

}
